home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980901-19981211
/
000022_news@newsmaster….columbia.edu _Wed Sep 9 15:16:33 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA04717
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 9 Sep 1998 15:16:33 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA08034
for kermit.misc@watsun; Wed, 9 Sep 1998 15:16:32 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.os.vms,comp.protocols.kermit.misc
Subject: Re: Problems compiling Kermit
Date: 9 Sep 1998 19:16:26 GMT
Organization: Columbia University
Lines: 80
Message-ID: <6t6k6a$g3v$1@apakabar.cc.columbia.edu>
References: <01J1LNSCCQV6003UJK@acs.wooster.edu>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.os.vms:185794 comp.protocols.kermit.misc:9185
In article <01J1LNSCCQV6003UJK@acs.wooster.edu>,
Lee Schultz <SCHULTZ@ACS.WOOSTER.EDU> wrote:
:
: Software:
: Kermit 6.0.192
: AXP/VMS v7.1-1h1
: DecC v5.7
: Multinet v4.1a
:
: Note that I am NOT a "C" programmer.
:
: Your suggestions would be greatly appreciated.
:
You are perfectly welcome to report problems with C-Kermit directly to
kermit-support@columbia.edu.
: When compiling Kermit on the Alpha, I get the following error messages:
:
: Starting [...]CKVKER.COM;3 on HOLMES at 8-SEP-1998 11:45:50.28
: DECC compiler found
: C compiler: DECC, options: /decc, command: CC
: Operating System: OpenVMS(tm) Alpha
:
: 'CC' 'CCOPT' KSP:ckcmai
: #if _POSIX_C_SOURCE >= 2 || !defined _POSIX_C_SOURCE
: ....................^
: %CC-W-BADCONSTEXPR, Syntax error in constant expression.
: at line number 127 in module UNISTD of text library
: SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;1
:
This will be fixed in the next release. The fix is in the file CKCDEB.H.
Please find this:
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE
#endif /* _POSIX_C_SOURCE */
Change it to this:
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 1
#endif /* _POSIX_C_SOURCE */
(Add a definition of "1").
: _PROTOTYP( void bzero, (char *, int) );
: ^
: %CC-E-PARMTYPLIST, Ill-formed parameter type list.
: at line number 549 in file COLLEGE$WOOSTER:[KERMIT.CURRENT.SRC]CKCNET.H;3
:
: _PROTOTYP( void bcopy, (char *, char *, int) );
: ^
: %CC-E-NOTCOMPAT, In this declaration, the type of "__MEMMOVE" is not
: compatible with the type of a previous declaration of "__MEMMOVE" at line
: number 274 in file SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;1.
:
Now these two are interesting. bzero() and bcopy() are not very portable,
and yet they are widely used in networking code. If you look higher up in
CKCNET.H, you'll see that we #define bzero and bcopy to be memset and
memcopy (with appropriate argument rearrangement), but only if SVR4 (System
V Release 4) or EXCELAN is defined, and then only if UNIX is also defined.
But none of those is defined in a VMS build. So I have no idea how bcopy()
could have been #define'd as memmove (as the diagnostic above demonstrates
to be the case), unless it's happening somewhere else.
I'd like to know why this is happening, and fix it, but without access to
your configuration, it's hard to say. However, you might be able to mask
the problem as follows:
#ifndef bzero
_PROTOTYP( void bzero, (char *, int) );
#endif /* bzero */
#ifndef bcopy
_PROTOTYP( void bcopy, (char *, char *, int) );
#endif /* bcopy */
Please follow up directly to kermit-support@columbia.edu.
- Frank